package com.ssy.lingxi.member.merchant.model.vo.maintenance.request;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * 会员能力 - 数据权限配置参数VO - 用于新增会员自定义角色
 * @author 万宁
 * @version 2.0.0
 * @date 2021-04-02
 */
public class MemberAbilityDataAuthVO implements Serializable {
    private static final long serialVersionUID = 2087965430814211888L;

    /**
     * 左侧菜单Id
     */
    @NotNull(message = "菜单Id要大于0")
    @Positive(message = "菜单Id要大于0")
    private Long menuId;

    /**
     * 勾选标记
     */
    @NotNull(message = "菜单勾选标记不能为空")
    private Boolean checked;

    /**
     * 按钮Id列表
     */
    private List<Long> buttonIds;

    /**
     * 是否具有数据权限：0或Null-否，1-是
     */
    @Min(value = 0, message = "是否具有数据权限参数取值：0或Null-否，1-是")
    @Max(value = 1, message = "是否具有数据权限参数取值：0或Null-否，1-是")
    private Integer hasDataAuth;

    /**
     * 关联的组织机构Id列表
     */
    private List<Long> orgIds;

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public List<Long> getButtonIds() {
        return buttonIds;
    }

    public void setButtonIds(List<Long> buttonIds) {
        this.buttonIds = buttonIds;
    }

    public Integer getHasDataAuth() {
        return hasDataAuth;
    }

    public void setHasDataAuth(Integer hasDataAuth) {
        this.hasDataAuth = hasDataAuth;
    }

    public List<Long> getOrgIds() {
        return orgIds;
    }

    public void setOrgIds(List<Long> orgIds) {
        this.orgIds = orgIds;
    }
}
